package admin

import (
	"ginBasic/app/common/business"
	"ginBasic/global"
	"github.com/gin-gonic/gin"
	"net/http"
)

type IndexController struct {
	BaseController
}

func (con IndexController) Index(c *gin.Context) {
	menuList := business.Index.GetLeftMenu()
	c.HTML(http.StatusOK, "admin/index/index.html", gin.H{
		"username": global.USERINFO.Username,
		"menuList": menuList,
	})
}

func (con IndexController) Main(c *gin.Context) {
	c.HTML(http.StatusOK, "admin/index/console.html", gin.H{})
}
